package com.xlh.dao.statistic.ext;

import com.xlh.dto.statistic.ChapterDTO;
import com.xlh.dto.statistic.ChapterStatisticDTO;
import com.xlh.dto.statistic.StudentChapterDTO;
import com.xlh.pojo.statistic.StatisticStudentChapter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentChapterMapperExt {

    List<ChapterDTO> queryChapterList(@Param("courseId") Long courseId, @Param("classId") Long classId,
                                      @Param("userInfo") String userInfo);

    List<StudentChapterDTO> queryStudentChapter(@Param("courseId") Long courseId, @Param("classId") Long classId,
                                                @Param("userId") Long userId);

    List<ChapterStatisticDTO> queryChapter(@Param("courseId") Long courseId, @Param("classId") Long classId);

    void insertBatch(@Param("list") List<StatisticStudentChapter> list);

    void updateBatch(@Param("list") List<StatisticStudentChapter> list);

}